package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.CurrentIpInfo;
import com.wanlian.netty.msg.Device.model.IpInfo;
import com.wanlian.netty.msg.MsgType;

/**
 * 获取当前网络信息
 */
public class CurrentIpInfoReply extends BaseMsg {

    private CurrentIpInfo currentIpInfo;

    public CurrentIpInfoReply() {
        super();
        this.setType(MsgType.DEVICE_STATUS_CURRENT_REP);
    }

    public CurrentIpInfo getIpInfo() {
        return currentIpInfo;
    }

    public void setIpInfo(CurrentIpInfo currentIpInfo) {
        this.currentIpInfo = currentIpInfo;
        this.setContent(JsonStringUtil.writeValueAsString(currentIpInfo));
    }
}
